<template>
  <div style="flex: 1">
    <web style="flex: 1"
    src="http://weather.zj1024.com"
    @error="webViewError"></web>
  </div>
</template>

<script>
const modal = weex.requireModule('modal')
export default {
  methods: {
    webViewError () {
      modal.toast({ 'message': '加载失败', 'duration': 1 })
    }
  }
}
</script>
